package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@ApiModel
public class RoleDTO {

    @NotEmpty(message = "角色Id不可以为空")
    @Length(min = 1, max = 64, message = "角色Id长度需要在1-64个字之间")
    @ApiModelProperty(value = "角色Id")
    private Integer id;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    public RoleDTO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
